package IO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-10-03
 * Time:17:08
 */
public class Demo3 {
    public static void main(String[] args) throws IOException {
        OutputStream stream=new FileOutputStream("./src/file/test1.txt");
        try{

        byte[] bytes=new byte[20];
        stream.write(bytes);


        }
        finally{
            stream.close();
        }

    }
}
